//
//  GameRootController.h
//  ELife
//
//  Created by xiaozhi on 11-5-13.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "GameListProtocol.h"
@class GameListController;
@class GameCardModel;
@class GameGoodsInfo;

typedef enum {
    STATE_OTHER,
    STATE_QQ
}GameListType;


#define TEXT_QQ @"为QQ充值?请点这里!"
#define TEXT_OTHER @"为其他游戏充值?请点这里!"
#define TITLE_QQ @"QQ充值"
#define TITLE_OTHER @"网游"

@interface GameRootController : UIViewController <GameListListener> {
@private 
    GameListType _state; // qq state or other game state
    NSMutableArray *_gameCardModelList;
    GameCardModel *_selectedGameCardModel;
    BOOL _isSecondList; // 是否是2级列表
    GameGoodsInfo *_selectedGoodsInfo;
}

@property (retain, nonatomic) IBOutlet UIView *inputContainer;
@property (retain, nonatomic) IBOutlet UIButton *qqButton;
@property (retain, nonatomic) IBOutlet UIButton *pickGameButton;
@property (retain, nonatomic) IBOutlet UIButton *nextButton;
@property (retain, nonatomic) IBOutlet UITextField *gameNameTextField;

-(IBAction)action:(id)sender;
@end
